package basic.job;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.stereotype.Component;

@Component
public class JobOne {
	DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");    

//	@Scheduled(cron = "0/1 * * * * ?")
	public void sendEmail() throws InterruptedException{
		System.out.println("----------job1——————————"+ sdf.format(new Date()));
	}
}
